package com.bootdo.contract.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.contract.dao.MissionDao;
import com.bootdo.contract.domain.MissionDO;
import com.bootdo.contract.service.MissionService;



@Service
public class MissionServiceImpl implements MissionService {
	@Autowired
	private MissionDao missionDao;
	
	@Override
	public MissionDO get(Long id){
		return missionDao.get(id);
	}
	
	@Override
	public List<MissionDO> list(Map<String, Object> map){
		return missionDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return missionDao.count(map);
	}
	
	@Override
	public int save(MissionDO mission){
		return missionDao.save(mission);
	}
	
	@Override
	public int update(MissionDO mission){
		return missionDao.update(mission);
	}
	
	@Override
	public int remove(Long id){
		return missionDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return missionDao.batchRemove(ids);
	}

	@Override
	public List<MissionDO> getMissionListByUserId(MissionDO mission) {
		return missionDao.getMissionListByUserId(mission);
	}

}
